import request from '@/utils/request'

/**
 * 获取商家统计数据
 * @param {String} timeRange - 时间范围: today/week/month/all
 */
export function getMerchantStats(timeRange = 'today') {
  return request.get('/merchant/stats', { timeRange })
}

/**
 * 获取热销商品TOP10
 * @param {String} timeRange - 时间范围: today/week/month/all
 * @param {Number} limit - 返回数量
 */
export function getHotProducts(timeRange = 'month', limit = 10) {
  return request.get('/merchant/hot-products', { timeRange, limit })
}

